<script setup lang="js">
import { onMounted, reactive, ref } from 'vue';
import axios from 'axios';
const config = reactive({
    data: [],
    header:["学校","省份","级别","类型"],
    carousel: 'single',
    headerHeight:30,
    rowNum:9,
    headerBGC:'#00BAFF',
    oddRowBGC:'#003B51',
    evenRowBGC:'#0A2732',
    columnWidth:[100],
    hoverPause:true,
    agign:'right',
    waitTime:1000,
    rowHright:15
})
function getData() {
    //-:获取服务器数据
    axios.get('/Pro-Postgraduate/queryUniversityInformation')
        .then((response) => {
            //console.log(response.data)
          //  if (response.data.code == 200) {
                let obj = reactive({})
                for (let index = 0; index < response.data.length; index++) {
                    let yobj = response.data[index];
                    obj = {
                        name: yobj.school,
                        value: yobj.province,
                        value1: yobj.schoolLevel,
                        value2: yobj.schoolTypes,
                    }
                    //console.log(obj)
                    config.data.push(obj)
                }
           // }
        })
}
onMounted(() => {
    getData();
})
</script>
<template>
    <dv-decoration-7 style="width:200px;height:30px;color: azure;position: fixed;top:8%;left:73%">大学信息</dv-decoration-7>
    <dv-scroll-board :config="config" style="width:350px;height:450px;position: fixed;left:77%;top: 12%;" />
    
</template>
<style lang="css" scoped>
#dcc {
    width: 100%;
    height: 85%;
    padding-left: 20px;
    padding-right: 0px;
    padding-top:0px;
}
</style>